var express = require('express');

var mysql = require('./common/mysql');
var router = express.Router();
var $result = require('../../common/result')
/* GET users listing. */
router.get('/info', function(req, res, next) {

    id = req.query.token;
    mysql.query("select nickname,money,head_image as headImage from tb_user_info where id = ?",[id],function (data) {
        res.send($result.success.replaceData(data[0]));
    })


});

module.exports = router;
